package RW;

import java.util.Date;

public class Employee {
		private int id;
		private String name;
		private char sex;
		private Date date;
		
		public Employee() {
			super();
			id=1;
			name="张三";
			sex='男';
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public char getSex() {
			return sex;
		}
		public void setSex(char sex) {
			this.sex = sex;
		}
		public Date getDate() {
			return date;
		}
		public void setDate(Date date) {
			this.date = date;
		}
		
		public int getAge() {
			int age=18;
			return age;
		}
        public String sayHi() {
			System.out.println( "我是"+name+"， 我的工号是"+id+"，我今年18岁了，请多关照");
			return name;
		}
		@Override
		public String toString() {
			return "Employee [id=" + id + ", name=" + name + ", sex=" + sex + ", date=" + date + "]";
		}

}
